import Vue from 'vue'
import Router from 'vue-router'
import Error from './views//error';
import Index from './views/Index.vue'//首页
import Notice from './views/Notice.vue'//通知
import Authorization from './views/authorization.vue'//授权
// 采购专区
import OrderManage from './views/ShopSystem/OrderManage.vue'//订单管理
import ShopIndex from './views/ShopSystem/ShopIndex.vue'//商品列表页
import ShopSearch from './views/ShopSystem/ShopSearch.vue' //商品搜索页
import ShopSetOrder from './views/ShopSystem/ShopSetOrder.vue'//商品下单页
import ShopOrderList from './views/ShopSystem/ShopOrderList.vue'//商品订单列表
import ShopOrderDetail from './views/ShopSystem/ShopOrderDetail.vue'//订单详情
import GoodsRefundList from './views/ShopSystem/GoodsRefundList.vue'//退款单列表
import GoodsRefundDetail from './views/ShopSystem/GoodsRefundDetail.vue'//退款单详情
import GoodsDeliveryList from './views/ShopSystem/GoodsDeliveryList.vue'//发货单列表
import GoodsDeliveryDetail from './views/ShopSystem/GoodsDeliveryDetail.vue'//发货单详情
import address from './views/ShopSystem/addressView.vue'//添加地址页
// 供应商
import SupplierList from './views/SupplierManage/SupplierList.vue'//供应商列表
import SupplierDetail from './views/SupplierManage/SupplierDetail.vue'//供应商详情
import SupplierCreate from './views/SupplierManage/SupplierCreate.vue'//供应商创建
import ConfigSupplier from './views/SupplierManage/ConfigSupplier.vue'//设置供应商
// 员工
import StaffManage from './views/StaffManage/StaffManage.vue'//员工管理
import StaffCreate from './views/StaffManage/StaffCreate.vue'//创建员工
import StaffDetail from './views/StaffManage/StaffDetail.vue'//员工详情
// 资金管理
import CapitalManage from './views/CapitalManage/CapitalManage.vue'//资金管理
import CapitalList from './views/CapitalManage/CapitalList.vue'//资金明细
import RechargeView from './views/CapitalManage/RechargeView.vue'//充值

// 单据
import BillManage from './views/BillManage/BillManage.vue'//单据管理
import LossReportList from './views/BillManage/LossReportList.vue'//报损单列表
import LossReportDetail from './views/BillManage/LossReportDetail.vue'//报损单详情
import DeliveryList from './views/BillManage/DeliveryList.vue'//出库单列表
import DeliveryDetail from './views/BillManage/DeliveryDetail.vue'//出库单详情
import WarehouseList from './views/BillManage/WarehouseList.vue'//入库单列表
import WarehouseDetail from './views/BillManage/WarehouseDetail.vue'//入库单详情

// 库存
import StockInventoryList from './views/StockGoodsManage/StockInventoryList.vue'//库存盘点计划列表
import StockGoodsManage from './views/StockGoodsManage/StockGoodsManage.vue'//库存商品管理
import StockGoodsDetail from './views/StockGoodsManage/StockGoodsDetail.vue'//商品详情
import StockLossReportSub from './views/StockGoodsManage/StockLossReportSub.vue'//提交报损
import StockInventoryCreate from './views/StockGoodsManage/StockInventoryCreate.vue'//创建盘点计划
import StockInventoryDetail from './views/StockGoodsManage/StockInventoryDetail.vue'//盘点计划详情
import StockInventorySub from './views/StockGoodsManage/StockInventorySub.vue'//提交盘点
import AddDeliveryGoods from './views/StockGoodsManage/AddDeliveryGoods.vue'//出库
import WarehoueCreate from './views/StockGoodsManage/WarehoueCreate.vue'//商品入库
import AddGoodsView from './views/StockGoodsManage/AddGoodsView.vue'//添加商品
import GoodsRefundSub from './views/StockGoodsManage/GoodsRefundSub.vue'//商品退款


Vue.use(Router)

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '*',
            name: '404',
            component: Error,
            hidden: true
        },
        {
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/Notice',
            name: 'Notice',
            component: Notice,
            meta: {
                title: '通知'
            }
        },
        {
            path: '/Authorization',
            name: 'Authorization',
            component: Authorization,
            meta: {
                title: '授权'
            }
        },
        // 采购专区
        {
            path: '/OrderManage',
            name: 'OrderManage',
            component: OrderManage,
            meta: {
                title: '订单管理'
            }
        },
        {
            path: '/address',
            name: 'address',
            component: address,
            meta: {
                title: '地址页'
            }
        },
        {
            path: '/ShopIndex',
            name: 'ShopIndex',
            component: ShopIndex,
            meta: {
                title: '商品列表页'
            }
        },
        {
            path: '/ShopSearch',
            name: 'ShopSearch',
            component: ShopSearch,
            meta: {
                title: '商品搜索页'
            }
        },
        {
            path: '/ShopSetOrder',
            name: 'ShopSetOrder',
            component: ShopSetOrder,
            meta: {
                title: '商品下单页'
            }
        },
        {
            path: '/ShopOrderList',
            name: 'ShopOrderList',
            component: ShopOrderList,
            meta: {
                title: '商品订单列表'
            }
        },
        {
            path: '/ShopOrderDetail',
            name: 'ShopOrderDetail',
            component: ShopOrderDetail,
            meta: {
                title: '订单详情'
            }
        },
        {
            path: '/GoodsDeliveryList',
            name: 'GoodsDeliveryList',
            component: GoodsDeliveryList,
            meta: {
                title: '发货单列表'
            }
        },
        {
            path: '/GoodsDeliveryDetail',
            name: 'GoodsDeliveryDetail',
            component: GoodsDeliveryDetail,
            meta: {
                title: '发货单详情'
            }
        },
        {
            path: '/GoodsRefundList',
            name: 'GoodsRefundList',
            component: GoodsRefundList,
            meta: {
                title: '退款单列表'
            }
        },
        {
            path: '/GoodsRefundDetail',
            name: 'GoodsRefundDetail',
            component: GoodsRefundDetail,
            meta: {
                title: '退款单详情'
            }
        },
        // 供应商
        {
            path: '/SupplierList',
            name: 'SupplierList',
            component: SupplierList,
            meta: {
                title: '供应商列表'
            }
        },
        {
            path: '/SupplierDetail',
            name: 'SupplierDetail',
            component: SupplierDetail,
            meta: {
                title: '供应商详情'
            }
        },
        {
            path: '/SupplierCreate',
            name: 'SupplierCreate',
            component: SupplierCreate,
            meta: {
                title: '供应商创建'
            }
        },
        {
            path: '/ConfigSupplier',
            name: 'ConfigSupplier',
            component: ConfigSupplier,
            meta: {
                title: '设置供应商'
            }
        },

        // 员工
        {
            path: '/StaffManage',
            name: 'StaffManage',
            component: StaffManage,
            meta: {
                title: '员工管理'
            }
        },
        {
            path: '/StaffCreate',
            name: 'StaffCreate',
            component: StaffCreate,
            meta: {
                title: '创建员工'
            }
        },
        {
            path: '/StaffDetail',
            name: 'StaffDetail',
            component: StaffDetail,
            meta: {
                title: '员工详情'
            }
        },
        // 资金
        {
            path: '/CapitalManage',
            name: 'CapitalManage',
            component: CapitalManage,
            meta: {
                title: '资金管理'
            }
        },
        {
            path: '/CapitalList',
            name: 'CapitalList',
            component: CapitalList,
            meta: {
                title: '资金明细'
            }
        },
        {
            path: '/RechargeView',
            name: 'RechargeView',
            component: RechargeView,
            meta: {
                title: '充值'
            }
        },


        // 票据管理
        {
            path: '/BillManage',
            name: 'BillManage',
            component: BillManage,
            meta: {
                title: '票据管理'
            }
        },
        {
            path: '/LossReportList',
            name: 'LossReportList',
            component: LossReportList,
            meta: {
                title: '报损单列表'
            }
        },
        {
            path: '/LossReportDetail',
            name: 'LossReportDetail',
            component: LossReportDetail,
            meta: {
                title: '报损单详情'
            }
        },
        {
            path: '/DeliveryList',
            name: 'DeliveryList',
            component: DeliveryList,
            meta: {
                title: '出库单列表'
            }
        },
        {
            path: '/DeliveryDetail',
            name: 'DeliveryDetail',
            component: DeliveryDetail,
            meta: {
                title: '出库单详情'
            }
        },
        {
            path: '/WarehouseList',
            name: 'WarehouseList',
            component: WarehouseList,
            meta: {
                title: '入库单列表'
            }
        },
        {
            path: '/WarehouseDetail',
            name: 'WarehouseDetail',
            component: WarehouseDetail,
            meta: {
                title: '入库单详情'
            }
        },
        // 库存
        {
            path: '/StockGoodsManage',
            name: 'StockGoodsManage',
            component: StockGoodsManage,
            meta: {
                title: '库存商品管理'
            }
        },
        {
            path: '/StockGoodsDetail',
            name: 'StockGoodsDetail',
            component: StockGoodsDetail,
            meta: {
                title: '商品详情'
            }
        },
        {
            path: '/StockLossReportSub',
            name: 'StockLossReportSub',
            component: StockLossReportSub,
            meta: {
                title: '提交报损'
            }
        },
        {
            path: '/StockInventoryList',
            name: 'StockInventoryList',
            component: StockInventoryList,
            meta: {
                title: '库存盘点列表'
            }
        },
        {
            path: '/StockInventoryCreate',
            name: 'StockInventoryCreate',
            component: StockInventoryCreate,
            meta: {
                title: '创建盘点计划'
            }
        },
        {
            path: '/StockInventoryDetail',
            name: 'StockInventoryDetail',
            component: StockInventoryDetail,
            meta: {
                title: '盘点计划详情'
            }
        },
        {
            path: '/StockInventorySub',
            name: 'StockInventorySub',
            component: StockInventorySub,
            meta: {
                title: '提交盘点'
            }
        },
        {
            path: '/AddDeliveryGoods',
            name: 'AddDeliveryGoods',
            component: AddDeliveryGoods,
            meta: {
                title: '添加出库商品'
            }
        },
        {
            path: '/WarehoueCreate',
            name: 'WarehoueCreate',
            component: WarehoueCreate,
            meta: {
                title: '商品入库'
            }
        },
        {
            path: '/AddGoodsView',
            name: 'AddGoodsView',
            component: AddGoodsView,
            meta: {
                title: '添加商品'
            }
        },
        {
            path: '/GoodsRefundSub',
            name: 'GoodsRefundSub',
            component: GoodsRefundSub,
            meta: {
                title: '商品退款'
            }
        },


    ]
})
